package com.yantong.service;

import com.yantong.utils.PageUtils;
import com.yantong.pojo.Member;
import com.yantong.pojo.MemberUseragent;

import java.util.List;

public interface MemberUseragentService {
//
//    /**
//     * 创建代理用户基础信息
//     *
//     * @param id
//     * @return
//     */
//    MemberUseragent creatUseragentByMid(Long id);


    List<MemberUseragent> memberUseragentList();

    MemberUseragent selectByMid(Long mid);

    MemberUseragent selectByPrimaryKey(Long useragentId);

    /**
     * 保存代理信息
     * @param memberUseragent
     * @return
     */
    int saveMemberUseragent(MemberUseragent memberUseragent);

    /**
     * 代理信息列表
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<MemberUseragent> listMemberUseragent(MemberUseragent memberUseragent, int offset, int limit);

    /**
     * 更新代理信息
     * @param memberUseragent
     * @return
     */
    int updateMemberUseragent(MemberUseragent memberUseragent);

    /**
     * 移除代理信息
     * @param id
     * @return
     */
    int removeMemberUseragent(Long id);

    /**
     * 代理信息详情
     * @param id
     * @return
     */
    MemberUseragent getMemberUseragentById(Long id);
}
